/* eslint-disable @typescript-eslint/ban-types */
/* eslint-disable @typescript-eslint/no-explicit-any */
import { UploadChangeParam, UploadProps } from "antd/es/upload";

// 内容
export  interface DataType {
  cid: any;
  // 车型名称
  cxname:string;
  // 车型图片
  cximage: string;
  // 车型名称
  name: string;
  // 品牌
  brand: string;
  // 款式
  style: string;
  // 年款
  year: Number;
  // 座位数
  seats: string;
  // 厢式
  boxtype: string;
  // 排量
  displacement: string;
  // 变速器类型
  TransmissionType: string;
}

export  interface VehicleFormProps {
    previewOpen: boolean;
    previewImage: string;
    fileList: UploadProps["fileList"] | undefined;
    handleCancel: () => void;
    handleChange: (info: UploadChangeParam) => void;
    onFinish: (values: any) => void;
    editMode: boolean;
    selectedRecord: DataType | undefined;
    setFileList: (fileList: any) => void;
    setPreviewOpen: (previewOpen: boolean) => void;
  }